package io.github.picassodemo;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.ImageView;

import com.squareup.picasso.Picasso;

public class MainActivity extends AppCompatActivity {

    ImageView imageView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        imageView = findViewById(R.id.image1);
        Picasso.get().load("http://square.github.io/picasso/static/sample.png").into(imageView);
//        Glide.with(this)
//                .load("http://square.github.io/picasso/static/sample.png")
//                .into(imageView);
    }
}
